﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CoursesAdd.ascx.cs"
    Inherits="Framework.Portal.Layouts.Admin.Components.BGTT.Courses.CoursesAdd" %>
<div id="TabSystem1" class="content1 postcaption">
    <div class="tabs">
        <div class="tabrow">
            <asp:LinkButton ID="btn0" runat="server" CssClass="tab tabActive" Text="Danh sách"
                OnClick="ActiveTab" CommandArgument="0"></asp:LinkButton>
            <asp:LinkButton ID="btn1" runat="server" CssClass="tab tabActive" Text="Cơ bản"
                OnClick="ActiveTab" CommandArgument="1"></asp:LinkButton>
            <asp:LinkButton ID="btn2" runat="server" CssClass="tab" Text="Bài giảng" OnClick="ActiveTab"
                CommandArgument="2" Enabled="false"></asp:LinkButton>
            <asp:LinkButton ID="btn3" runat="server" CssClass="tab" Text="Thông báo" OnClick="ActiveTab"
                CommandArgument="3" Enabled="false"></asp:LinkButton>
            <asp:LinkButton ID="btn4" runat="server" CssClass="tab" Text="FAQ" OnClick="ActiveTab"
                CommandArgument="4" Enabled="false"></asp:LinkButton>
            <asp:LinkButton ID="btn5" runat="server" CssClass="tab" Text="Danh sách theo dõi"
                OnClick="ActiveTab" CommandArgument="5" Enabled="false"></asp:LinkButton>
            <asp:LinkButton ID="btn6" runat="server" CssClass="tab" Text="Danh sách học viên"
                OnClick="ActiveTab" CommandArgument="6" Enabled="false"></asp:LinkButton>
        </div>
        <div class="tabcontent">
            <table id="boxGeneral" border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
                <tr>
                    <td colspan="2" class="header2" height="18">
                        <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" width="40%" align="right">
                        <NS:Label ID="Label1" runat="server" LocalizedPage="FORMCAPTION"
                            LocalizedTag="ID" />
                    </td>
                    <td class="post" width="60%" align="left">
                        <asp:Label ID="lblID" runat="server" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Tiêu đề
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox runat="server" ID="txtTitle" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Tiêu đề ngắn
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox runat="server" ID="txtShortTitle" Width="95%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Thời gian bắt đầu
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox ID="txtStartDate" CssClass="inputDate" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Môn học
                    </td>
                    <td class="post" align="left">
                        <asp:DropDownList ID="drpCategories" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Niên khóa
                    </td>
                    <td class="post" align="left">
                        <asp:DropDownList ID="drpYear" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Hình đại diện
                    </td>
                    <td class="post" align="left">
                        <NS:FilePicker runat="server" FileType="jpg" PopupTitle="Up ảnh" PopupFilter="image"
                Width="265" ID="txtImage"></NS:FilePicker>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Mô tả khóa học
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox ID="txtDescription" TextMode="MultiLine" Rows="20" runat="server" Width="440"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Nền tảng
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox ID="txtBackground" TextMode="MultiLine" Rows="20" runat="server" Width="440"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Đúc rút
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox ID="txtResult" TextMode="MultiLine" Rows="20" runat="server" Width="440"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="postheader" align="right">
                        Số ghế ngồi
                    </td>
                    <td class="post" align="left">
                        <asp:TextBox runat="server" ID="txtSeat" Width="10%"></asp:TextBox>&nbsp;(Bằng 0 để không giới hạn)
                    </td>
                </tr>
                <tr>
                    <td class="postfooter" colspan="2" valign="middle" align="center">
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="UPDATE"
                            ID="General_cmdUpdate" runat="server" CssClass="pbutton" OnClick="cmdUpdate_Click"
                            Text="Cập nhật" Width="77px" />
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="CREATE"
                            ID="General_cmdAddNew" runat="server" CssClass="pbutton" OnClick="cmdAddNew_Click"
                            Text="Thêm mới" Width="77px" />
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="DELETE"
                            ID="General_cmdDelete" runat="server" CssClass="pbutton" OnClick="cmdDelete_Click"
                            Text="Xóa" Width="77px" />
                        <NS:Button LocalizedPage="ACTION" LocalizedTag="RESET"
                            ID="General_cmdEmpty" runat="server" CssClass="pbutton" CausesValidation="False"
                            OnClick="cmdEmpty_Click" Text="Hủy" Width="77px" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var initEditor = function () {
            $("#<%= txtDescription.ClientID %>").sceditorBBCodePlugin({
                toolbar: "bold,italic,underline,|,left,center,right,justify,|,bulletlist,orderedlist,|,font,size,color,removeformat,|,image,emoticon,|,source",
                style: "/ClientScript/sceditor/css/jquery.sceditor.default.min.css"
            });
            $("#<%= txtBackground.ClientID %>").sceditorBBCodePlugin({
                toolbar: "bold,italic,underline,|,left,center,right,justify,|,bulletlist,orderedlist,|,font,size,color,removeformat,|,image,emoticon,|,source",
                style: "/ClientScript/sceditor/css/jquery.sceditor.default.min.css"
            });
            $("#<%= txtResult.ClientID %>").sceditorBBCodePlugin({
                toolbar: "bold,italic,underline,|,left,center,right,justify,|,bulletlist,orderedlist,|,font,size,color,removeformat,|,image,emoticon,|,source",
                style: "/ClientScript/sceditor/css/jquery.sceditor.default.min.css"
            });            
        };
        initEditor();
        $('#<%= txtStartDate.ClientID %>').appendDtpicker();
    });
</script>